/**
 * 库存
 */
import request from '@/utils/request'

/**
 * @method productSkuListByShop
 * @description 单门店模式列表
 */
export function productSkuListByShop(data) {
  return request({
    url: '/mall/admin/store_goods/store_goods_list',
    method: 'post',
    data: data
  })
}

/**
 * @method productSkuList
 * @description 多门店模式列表
 */
export function productSkuList(data) {
  return request({
    url: '/mall/admin/goods/sku/list',
    method: 'post',
    data: data
  })
}

/**
 * @method productSkuStoreList
 * @description sku拉取店铺列表
 */
export function productSkuStoreList(params) {
  return request({
    url: '/mall/admin/store_goods/sku_store_list',
    method: 'get',
    params: params
  })
}

/**
 * @method productSkuDetailByShop
 * @description 拉取单店铺sku详情
 */
export function productSkuDetailByShop(params) {
  return request({
    url: '/mall/admin/store_goods/store_goods_sku',
    method: 'get',
    params: params
  })
}

/**
 * @method modifyProductSkuStock
 * @description 修改sku库存
 */
export function modifyProductSkuStock(data) {
  return request({
    url: '/mall/admin/store_goods/modify_multi_store_stock',
    method: 'post',
    data: data
  })
}

/**
 * @method modifyProductSkuState
 * @description 修改sku价格&状态
 */
export function modifyProductSkuState(data) {
  return request({
    url: '/mall/admin/store_goods/modify_multi_store',
    method: 'post',
    data: data
  })
}

/**
 * @method modifyProductSkuStatus
 * @description 修改sku上下架状态
 */
export function modifyProductSkuStatus(data) {
  return request({
    url: '/mall/admin/goods/sku/batch_modify_status',
    method: 'post',
    data: data
  })
}

/**
 * @method shareProductSkuQrCode
 * @description 获取分享二维码
 */
export function shareProductSkuQrCode(data) {
  return request({
    url: '/mall/admin/goods/share/qrcode',
    method: 'post',
    data: data
  })
}
